<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>转码</title>
	<link rel="stylesheet" type="text/css" href="../../style/public.css">
</head>
<body>
	<div id="section">
		<p>encodeURI转码</p>
		<p>decodeURI解码</p>
	</div>
</body>
	<script>
		console.log('encodeURI方法把"中文"转码为：'+encodeURI('中文'))
		console.log('decodeURI方法把"%E4%B8%AD%E6%96%87"解码为：'+decodeURI('中文'))
	</script>
</html>